GetRequest = function(url){
    var url = arguments[0] ? arguments[0] : '';//设置第一个参数的默认值为1
    if(url == ''){
        url = location.search; //获取url中"?"符后的字串
    }else{
        if(url.indexOf("?")!=-1){
            url = url.substr(url.indexOf("?"));
        }else{
            url = '';
        }
    }
    var theRequest = new Object();
    if (url.indexOf("?") != -1) {
        var str = url.substr(1);
        strs = str.split("&");
        for(var i = 0; i < strs.length; i ++) {
            theRequest[strs[i].split("=")[0]]=(strs[i].split("=")[1]);
        }
    }
    return theRequest;
}
createURL = function(url,param){
    var link='';
    for(var key in param)
    {
        link += '&' + key + "=" + param[key];
    }
    if(link!=''){
        link = url + "?" + link.substr(1);
    }else{
        link = url;
    }

    return link.replace(' ','');
}